#include <sstream>

#include <Date.h>

Date::Date()
{
}

Date::Date(short someYear, short someMonth, short someDay): year(someYear), month(someMonth), day(someDay)
{
}

std::string Date::ToString()
{
    std::ostringstream stringStream;

    if (day < 10)
    {
        stringStream << "0";
    }

    stringStream << day;

    if (month < 10)
    {
        stringStream << "0";
    }

    stringStream << month;

    stringStream << year;

    return stringStream.str();
}
